home *** CD-ROM | disk | FTP | other *** search
- package horst;
-
- import java.awt.FontMetrics;
- import java.awt.Rectangle;
- import java.awt.Toolkit;
-
- public class BRView extends View {
- public BRView(View parent, Element e, HTMLPane container) {
- super(parent, e, container);
- }
-
- public int getBreakHeight() {
- FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(((View)this).getFont());
- return fm != null ? fm.getHeight() : 0;
- }
-
- protected int getPreferredSpan(int axis) {
- return 0;
- }
-
- public boolean isNewlineView() {
- return false;
- }
-
- public boolean isNextViewOnNewLine() {
- return true;
- }
-
- protected Rectangle layout(int x, int y, int width, LayoutInfo info) {
- super.m_bounds = new Rectangle(x, y, 0, 0);
- return super.m_bounds;
- }
- }
-